#-*-coding:utf-8-*-
'''
Created on 2012-5-28

@author: zhaoyh
'''
def register_module(*modules):
    urls=()
    module=[]
    try:
        for key in modules:
            mod=__import__('addons.'+key+'.setup', None, None, [''])
            urls+=getattr(mod, 'urls', None)
            module.append(getattr(mod, 'module', None))
        return (urls,module)        
    except:
        pass    
